// 全局对象，单例
interface GlobalProps {
  name: string;
}

class GlobalProps implements GlobalProps {
  public name: string;
  private constructor(name: string) {
    this.name = name;
  }

  public static createGlobalData(name: string) {
    return new GlobalProps(name);
  }
}

// export  single instance GLOBAL_OBJECT
export default GlobalProps.createGlobalData("GLOBAL_DATA");
